home *** CD-ROM | disk | FTP | other *** search
- Why does anyone use assigns for their games/utils?? Why not just use
- relative dir names! Like game.exe has folders data, gfx etc. Game just
- calls data/... or gfx/...
-
- Alternatives:
-
- PROGDIR: -- assigned to each executable when run
- Dir$ -- Current Dir in Amos
-
- In C, you can even read argv[0] to get the Command in case they typed a
- path before the exe name ie hd1:games/mygame.exe
-
- I have too many assigns! And the DEFER option of Assign is no replacement!
- (although it's much help)
-
- I can understand HELP: libs: dev: t: clip: s: (OS ones) and maybe even MUI:
-
- But not each Util and Game! When I move things on my HD, I usually just
- move the Prog's Dir or the Prog and all it's files. I don't want to worry
- about re-assigning assigns! Why would anyone want to move the executable
- somewhere strange, away from the data?? If so, use a CMD_LINE arg!
-
- Also, a tip to check if an assign/device exists:
- ASSIGN devname: EXISTS >nil:
- if NOT WARN EQ 5
- echo It is Here.
- endif
-
- For instance I check if df1: exists, then addbuffers. (for when I remove
- df1: temporarily, I hate getting errors!)
-
-